#!/usr/bin/python
# -*- coding: utf-8 -*-
# @author: 高建平
# @description: 
#

from enum import Enum
from fastapi import status as fastapiStatus


# 状态码
class Status(Enum):
    HTTP_FAIL = 0, '失败',
    HTTP_SUCCESS = 1, '成功',
    
    def __init__(self, code, message):
        self._code = code
        self._message = message

    @property
    def code(self):
        return self._code

    @property
    def message(self):
        return self._message
